<template>
  <div
    class="table-content-container"
    v-loading="loading"
    element-loading-text="加载中..."
    element-loading-spinner="el-icon-loading"
    element-loading-background="rgba(0, 0, 0, 0.5)"
  >
    <el-scrollbar style="height:100%">
      <el-table
        row-class-name="tableRowStyle"
        :show-header="false"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%"
      >
        <el-table-column prop="regName" label="注册机构" show-overflow-tooltip></el-table-column>
        <el-table-column prop="name" label="姓名" show-overflow-tooltip></el-table-column>
        <el-table-column prop="idNo" label="证件号" show-overflow-tooltip></el-table-column>
        <el-table-column prop="createTime" label="创建时间" show-overflow-tooltip>
          <template slot-scope="scope">
            <span>{{scope.row.createTime}}</span>
          </template>
        </el-table-column>
      </el-table>
    </el-scrollbar>
  </div>
</template>
<script>
import initData from "@/mixins/req";
import store from "@/store";
import { findName } from "@/utils/index";
export default {
  mixins: [initData],
  data() {
    return {
      timeId: null
      // searchKey: ""
    };
  },
  created() {
    this.init();
    this.updateData();
  },
  methods: {
    beforeInit() {
      this.url = store.getters["api/userRegister"];
      this.method = "get";
      // this.searchParams = {
      //   key: this.searchKey
      // };
      return true;
    }
  },
  beforeDestroy() {
    clearInterval(this.timeId);
  }
};
</script>

<style lang="scss" scoped>
@import "./homeTable.scss";
</style>
